home *** CD-ROM | disk | FTP | other *** search
/ Mac Magazin/MacEasy 11 / Mac Magazin and MacEasy Magazine CD - Issue 11.iso / Sharewarebibliothek / Entwickler / CDEF-DeBugger 2.0 ƒ / String.c < prev    next >
Text File  |  1995-05-31  |  346b  |  19 lines

  1. // Quick utility to turn a text string into a num and visa versa
  2.  
  3. // include files
  4. #include <ToolUtils.h>
  5.  
  6.  
  7. void     NumToString( long theNum, Str255 theString);
  8.  
  9. void     NumToString(long theNum, Str255 theString)
  10. {
  11.     short     x;
  12.     
  13.     for( x=1; x<=theString[0]; x++ )
  14.     {
  15.         theString[x] -= 0x30;
  16.     }
  17.     
  18.     BlockMove( &theString[1], &theNum[0], theString[0] );
  19. }